package cn.redsoft.wechatapi.msg.req.event;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class SubscribeEventRequestMsg extends EventRequestMsg {

	@XStreamAlias("EventKey")
	protected String eventKey;

	public SubscribeEventRequestMsg() {
		this.event = Event.SUBSCRIBE;
	}

	public SubscribeEventRequestMsg(String toUserName, String fromUserName,
			Long createTime) {
		super();
		this.event = Event.SUBSCRIBE;
		this.toUserName = toUserName;
		this.fromUserName = fromUserName;
		this.createTime = createTime;
	}

	public String getEventKey() {
		return eventKey;
	}

	public void setEventKey(String eventKey) {
		this.eventKey = eventKey;
	}

	@Override
	public String toString() {
		return "SubscribeEventRequestMsg [eventKey=" + eventKey + ", event="
				+ event + ", toUserName=" + toUserName + ", fromUserName="
				+ fromUserName + ", createTime=" + createTime + ", msgType="
				+ msgType + ", msgId=" + msgId + "]";
	}

}
